<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>IIFT 模式</title>
</head>
<body>
<script src="module.js"></script>
<script>
    console.log(myModule.data);
    myModule.foo()

    myModule.data  = "xyz"
    console.log(myModule.data);

    console.log(myModule.i);
    myModule.test()
</script>
</body>
</html>